﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SocialPhotos.Web.Models;

namespace SocialPhotos.Web.Controllers
{
    [Authorize]
    public class PhotosController : BaseController
    {
        public ActionResult Index()
        {
            BaseViewModel viewModel = new BaseViewModel();
            this.Intialize(viewModel);
            return View(viewModel);
        }

        public ActionResult Detail(int id)
        {
            PhotoDetailViewModel viewModel = new PhotoDetailViewModel();
            viewModel.Id = id;
            this.Intialize(viewModel);
            return View(viewModel);
        }

    }
}
